<%@ page import="com.guotd.ticketSystem.entity.User" %>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>机票预定系统-首页</title>
    <link rel="stylesheet" href="css/index.css">
</head>
<body>
<div class="container">
    <h1>机票预订系统-用户端</h1>
    <%User user= (User) session.getAttribute("user");
        if (user==null){
            request.getRequestDispatcher("login.jsp").forward(request, response);
        }%>
    <h4>登录成功，欢迎 <%=user.getName() %></h4>
    <br/>
    <div class="menu">
        <a href="flight_select.jsp" class="button">查询航班</a>
        <a href="change_pwd.jsp" class="button">修改密码</a>
        <a href="orderSelect?userId=<%=user.getId() %>" class="button">我的订单</a>
        <a href="login.jsp" class="button">退出登录</a>
    </div>
</div>
</body>
</html>